<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/MCS/Dashboard/Energy/ProfitLossDashboard.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/MCS/Dashboard/Energy</a> ProfitLossDashboard.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/60</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/14</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/14</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/59</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container&gt;
    &lt;div class="topContent"&gt;能耗盈亏&lt;/div&gt;
    &lt;div class="con1"&gt;
      &lt;div class="item" @click="totalSpending()"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
        &lt;div class="tit"&gt;&lt;i&gt;&lt;/i&gt;本月电费总支出&lt;/div&gt;
        &lt;div class="con"&gt;
          &lt;p&gt;&lt;span&gt;￥&lt;/span&gt;{{MonthPays.totalPay}}&lt;/p&gt;
          &lt;s class="red"style="width:3px;"&gt;&lt;/s&gt;
          &lt;el-progress style="width: 80%;" :percentage="75" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
        &lt;/div&gt;
        &lt;div class="bottom"&gt;
          &lt;p&gt;本月预算：￥{{MonthPays.MonthFee}}&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="item"@click="totalRevenue()"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
        &lt;div class="tit"&gt;&lt;i&gt;&lt;/i&gt;本月电费总收入&lt;/div&gt;
        &lt;div class="con"&gt;
          &lt;p&gt;&lt;span&gt;￥&lt;/span&gt;{{MonthPays.totalIncome}}&lt;/p&gt;
          &lt;s class="red"style="width:3px;"&gt;&lt;/s&gt;
          &lt;el-progress style="width: 80%;" :percentage="73" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
        &lt;/div&gt;
        &lt;div class="bottom"&gt;
          &lt;p&gt;本月预算：￥{{MonthPays.ElectricityIncome}}&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="item"@click="ProfitAndLoss()"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
        &lt;div class="tit"&gt;&lt;i&gt;&lt;/i&gt;本月能耗盈亏&lt;/div&gt;
        &lt;div class="con"&gt;
          &lt;p&gt;&lt;span&gt;￥&lt;/span&gt;{{MonthPays.consumption}}&lt;/p&gt;
          &lt;s class="red"style="width:3px;"&gt;&lt;/s&gt;
          &lt;el-progress style="width: 80%;" :percentage="81" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
        &lt;/div&gt;
        &lt;div class="bottom"&gt;
          &lt;p&gt;本月预算：￥{{MonthPays.ElectricityFees}}&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="item"@click="rateOfReturn()"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
        &lt;div class="tit"&gt;&lt;i&gt;&lt;/i&gt;盈利率&lt;/div&gt;
        &lt;div class="con"&gt;
          &lt;p&gt;{{MonthPays.percent}}%&lt;/p&gt;
          &lt;s class="red"style="width:3px;position:absolute;top:40px;height: 15px;"&gt;&lt;/s&gt;
          &lt;el-progress style="width: 80%;" :percentage="percentage" :color="customColors":show-text="false"&gt;&lt;/el-progress&gt;
        &lt;/div&gt;
        &lt;div class="bottom"&gt;
          &lt;p&gt;本月预算：{{MonthPays.feePercent}}%&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="con2"&gt;
      &lt;div class="box"&gt;
        &lt;div class="icon icon-kanban-guanbi"&gt;&lt;/div&gt;
        &lt;p&gt;盈利率&lt;span&gt; {{MonthPays.percent}}(%)&lt;/span&gt;&lt;/p&gt;
        &lt;div id="profitRate" style="width: 300px;height: 300px; margin: 0 auto;"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
<span class="cstat-no" title="statement not covered" >    const echarts = require('echarts');</span>
  export default {
      name: "mcs_dashboard_energy_page", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >      data() {</span>
<span class="cstat-no" title="statement not covered" >          return {</span>
              octopus: this.$parent.octopus,
              /*进度条*/
              percentage: 21,
              customColors: '#00FFFF',
              pumpNum:null,
              //本月电费总支出
              MonthPays:{
                  totalPay:null,
                  MonthFee:null,
                  totalIncome:null,
                  ElectricityIncome:null,
                  consumption:null,
                  ElectricityFees:null,
                  percent:null,
                  feePercent:null
              }
          }
      },
<span class="fstat-no" title="function not covered" >      mounted(){</span>
<span class="cstat-no" title="statement not covered" >          let o=this;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >          $(window).resize(function () {</span></span>
<span class="cstat-no" title="statement not covered" >              if(o.profitRate) {</span>
<span class="cstat-no" title="statement not covered" >                  o.profitRate.resize();</span>
              }
          });
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >          setTimeout(function () {</span></span>
<span class="cstat-no" title="statement not covered" >              o.profitRate();</span>
          },1000);
      },
<span class="fstat-no" title="function not covered" >      created(){</span>
<span class="cstat-no" title="statement not covered" >          this.MonthPay()</span>
      },
      methods: {
          //月支出
<span class="fstat-no" title="function not covered" >          MonthPay(){</span>
<span class="cstat-no" title="statement not covered" >              let o = this;</span>
<span class="cstat-no" title="statement not covered" >              let date = new Date();</span>
<span class="cstat-no" title="statement not covered" >              let year = date.getFullYear() ;</span>
<span class="cstat-no" title="statement not covered" >              let month = (date.getMonth() + 1);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >              this.octopus.request.api.post("/Octopus/Engine/List", {</span></span>
                      id:174,
                      value: this.octopus.passport.project,
                      cellData: [
                          {name: "Month",filterKey:"=",filterValue:month},
                          {name: "Year",filterKey:"=",filterValue:year},
                          {name: "ProjectID",filterKey:"=",filterValue:this.octopus.passport.project},
                          {name:"Electricity"},//用电量
                          {name:"HourExpenditure"},//电费支出
                          {name:"HourIncome"},//电费收入
                          {name:"ElectricityFees"},//电费支出预算
                          {name:"ElectricityIncome"},//电费收入预算
                      ],
                  },
                  function(data){
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                      if(data.status.code ==200){</span></span></span>
                          // 三位数逗号隔开方法
                          function thousands(num){
<span class="cstat-no" title="statement not covered" >                              let str = num.toString();</span>
<span class="cstat-no" title="statement not covered" >                              let reg = str.indexOf(".") &gt; -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g;</span>
<span class="cstat-no" title="statement not covered" >                              return str.replace(reg,"$1,");</span>
                          }
<span class="cstat-no" title="statement not covered" >                          if(data.content.queryData.length===0){</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.totalPay=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.MonthFee=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.totalIncome=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.consumption=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.ElectricityFees=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.ElectricityIncome=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.percent=0;</span>
<span class="cstat-no" title="statement not covered" >                              o.MonthPays.feePercent= 0;</span>
                          }
                          else{
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                                  data.content.queryData.map((item,index)=&gt;{</span></span>
<span class="cstat-no" title="statement not covered" >                                  if(data.content.queryData[0].HourExpenditure===null){</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.totalPay=0;</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.MonthFee=data.content.queryData[0].ElectricityFees;//电费支出预算</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.totalIncome=data.content.queryData[0].HourIncome;//电费收入</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.ElectricityIncome=data.content.queryData[0].ElectricityIncome;//电费收入预算</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.consumption= data.content.queryData[0].HourIncome - data.content.queryData[0].HourExpenditure;//本月能耗盈亏</span>
<span class="cstat-no" title="statement not covered" >                                      let aaa = ((data.content.queryData[0].HourIncome).toFixed(2) - (data.content.queryData[0].HourExpenditure).toFixed(2)).toFixed(2);</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.ElectricityFees= data.content.queryData[0].ElectricityIncome - data.content.queryData[0].ElectricityFees;</span>
<span class="cstat-no" title="statement not covered" >                                      let bbb = data.content.queryData[0].ElectricityIncome - data.content.queryData[0].ElectricityFees;</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.percent=parseInt((aaa / (data.content.queryData[0].HourExpenditure).toFixed(2))*100)</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.feePercent=parseInt((bbb / data.content.queryData[0].ElectricityFees)*100)</span>
<span class="cstat-no" title="statement not covered" >                                  }else if(data.content.queryData[0].ElectricityFees===null || data.content.queryData[0].ElectricityIncome===null ){</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.MonthFee=0;</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.ElectricityIncome=0;</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.totalPay=data.content.queryData[0].HourExpenditure;//电费支出</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.totalIncome=data.content.queryData[0].HourIncome;//电费收入</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.consumption= data.content.queryData[0].HourIncome - data.content.queryData[0].HourExpenditure;//本月能耗盈亏</span>
<span class="cstat-no" title="statement not covered" >                                      let aaa = ((data.content.queryData[0].HourIncome).toFixed(2) - (data.content.queryData[0].HourExpenditure).toFixed(2)).toFixed(2);</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.ElectricityFees= data.content.queryData[0].ElectricityIncome - data.content.queryData[0].ElectricityFees;</span>
<span class="cstat-no" title="statement not covered" >                                      let bbb = data.content.queryData[0].ElectricityIncome - data.content.queryData[0].ElectricityFees;</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.percent=parseInt((aaa / (data.content.queryData[0].HourExpenditure).toFixed(2))*100)</span>
<span class="cstat-no" title="statement not covered" >                                      o.MonthPays.feePercent=0</span>
                                  }
                              })
                          }
                      }else {
<span class="cstat-no" title="statement not covered" >                          o.octopus.tips.error(data);</span>
                      }
                  }
              )
          },
          //支出
<span class="fstat-no" title="function not covered" >          totalSpending(){</span>
<span class="cstat-no" title="statement not covered" >              this.octopus.router.jump('/MCS/Report/Energy/BaseStatisticsReport')</span>
          },
          //收入
<span class="fstat-no" title="function not covered" >          totalRevenue(){</span>
<span class="cstat-no" title="statement not covered" >              this.octopus.router.jump('/MCS/Report/Energy/BaseStatisticsReport')</span>
          },
          //盈亏
<span class="fstat-no" title="function not covered" >          ProfitAndLoss(){</span>
<span class="cstat-no" title="statement not covered" >              this.octopus.router.jump('/MCS/Report/Energy/BaseStatisticsReport')</span>
          },
        //盈利率
<span class="fstat-no" title="function not covered" >          rateOfReturn(){</span>
<span class="cstat-no" title="statement not covered" >              this.octopus.router.jump('/MCS/Report/Energy/BaseStatisticsReport')</span>
          },
<span class="fstat-no" title="function not covered" >          profitRate(){</span>
<span class="cstat-no" title="statement not covered" >              let o = this;</span>
<span class="cstat-no" title="statement not covered" >              o.profitRate=o.$echarts.init(document.getElementById("profitRate"));</span>
<span class="cstat-no" title="statement not covered" >              let option = {</span>
                  tooltip: {
                      show: true,
                      formatter: "盈利率：{c}%",
                      borderColor: "#333",        // 提示框浮层的边框颜色。...
                      borderWidth: 0,             // 提示框浮层的边框宽。...
                      padding: 5,                 // 提示框浮层内边距，单位px，默认各方向内边距为5，接受数组分别设定上右下左边距。...
                      textStyle: {                // 提示框浮层的文本样式。...
                          // color ,fontStyle ,fontWeight ,fontFamily ,fontSize ,lineHeight ,.......
                      },
                  },
&nbsp;
                  series: [
                      {
                          type: "gauge",
                          center: ["50%", "50%"], // 仪表位置
                          radius: "100%", //仪表大小
                          startAngle: 260, //开始角度
                          endAngle: -80, //结束角度
                          axisLine: {
                              show: false,
                              lineStyle: { // 属性lineStyle控制线条样式
                                  color:[ //表盘颜色
                                      [ 0.5, "#CB2A16" ],//0-50%处的颜色
                                      [ 1,"#4AFD88" ]//50%-100%处的颜色
                                  ],
                                  width: 10
                              }
                          },
                          splitLine: {
                              show: false
                          },
                          axisTick: {
                              show: false
                          },
                          axisLabel: {
                              show: false
                          },
                          pointer : { //指针样式
                              length: '45%'
                          },
                          detail: {
                              show: false
                          }
                      },
                      {
                          type : "gauge",
                          center: ["50%", "65%"], // 默认全局居中
                          radius : "100%",
                          startAngle: 200,
                          endAngle: -20,
                          min: -100,					// 最小的数据值,默认 0 。映射到 minAngle。
                          max: 100,
                          axisLine : {
                              show : true,
                              lineStyle : { // 属性lineStyle控制线条样式
                                  color : [ //表盘颜色
                                      [ 0.5, "#CB2A16" ],//0-50%处的颜色
                                      [ 1,"#4AFD88" ]//50%-100%处的颜色
                                  ],
                                  width : 10//表盘宽度
                              }
                          },
                          splitLine : { //分割线样式（及10、20等长线样式）
                              length : 10,
                              lineStyle : { // 属性lineStyle控制线条样式
                                  width : 1
                              }
                          },
                          axisTick: {				// 刻度(线)样式。
                              show: true,				// 是否显示刻度(线),默认 true。
                              splitNumber: 5,			// 分隔线之间分割的刻度数,默认 5。
                              length: 8,				// 刻度线长。支持相对半径的百分比,默认 8。
                              lineStyle: {			// 刻度线样式。
                                  color: "#fff",				//线的颜色,默认 #eee。
                                  opacity: 1,					//图形透明度。支持从 0 到 1 的数字，为 0 时不绘制该图形。
                                  width: 1,					//线度,默认 1。
                                  type: "solid",				//线的类型,默认 solid。 此外还有 dashed,dotted
                              },
                          },
                          axisLabel : { //文字样式（及“10”、“20”等文字样式）
                              color : "auto",
                              distance : 10 //文字离表盘的距离
                          },
                          detail: {
                              formatter : "{score|{value}%}",
                              offsetCenter: [0, "40%"],
                              backgroundColor: '',//文字部分背景颜色
                              height:30,
                              rich : {
                                  score : {
                                      color : "auto",
                                      fontFamily : "微软雅黑",
                                      fontSize : 22
                                  }
                              }
                          },
                          data: [{
                              value: o.MonthPays.percent,
                              label: {
                                  textStyle: {
                                      fontSize: 12
                                  }
                              }
                          }]
                      }
                  ]
&nbsp;
              }
<span class="cstat-no" title="statement not covered" >              o.profitRate.setOption(option);</span>
          }
      }
  }
&lt;/script&gt;
&nbsp;
&lt;style &gt;
&nbsp;
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
